package com.jbm.jbmsupplier.util;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * Created by lyh on 2017-02-27.
 */
 
public class GiGiHstyEntity implements Serializable {
    private static final long serialVersionUID = 3424363840258183189L;
    private int gghstyId;
    private int giId;
    private int prevId;
    private String type;
    private Timestamp startDate;
    private Timestamp endDate;
    private Timestamp lastUpdate;
    private Integer updateId;
    private GeoInfoEntity geoInfoEntity;

  
    public int getGghstyId() {
        return gghstyId;
    }

    public void setGghstyId(int gghstyId) {
        this.gghstyId = gghstyId;
    }

 
    public int getGiId() {
        return giId;
    }

    public void setGiId(int giId) {
        this.giId = giId;
    }

   
    public int getPrevId() {
        return prevId;
    }

    public void setPrevId(int prevId) {
        this.prevId = prevId;
    }

  
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

 
    public Timestamp getStartDate() {
        return startDate;
    }

    public void setStartDate(Timestamp startDate) {
        this.startDate = startDate;
    }

 
    public Timestamp getEndDate() {
        return endDate;
    }

    public void setEndDate(Timestamp endDate) {
        this.endDate = endDate;
    }

    
    public Timestamp getLastUpdate() {
        return lastUpdate;
    }

    public void setLastUpdate(Timestamp lastUpdate) {
        this.lastUpdate = lastUpdate;
    }

  
    public Integer getUpdateId() {
        return updateId;
    }

    public void setUpdateId(Integer updateId) {
        this.updateId = updateId;
    }

  
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        GiGiHstyEntity that = (GiGiHstyEntity) o;

        if (gghstyId != that.gghstyId) return false;
        if (giId != that.giId) return false;
        if (prevId != that.prevId) return false;
        if (endDate != null ? !endDate.equals(that.endDate) : that.endDate != null) return false;
        if (lastUpdate != null ? !lastUpdate.equals(that.lastUpdate) : that.lastUpdate != null) return false;
        if (startDate != null ? !startDate.equals(that.startDate) : that.startDate != null) return false;
        if (type != null ? !type.equals(that.type) : that.type != null) return false;
        if (updateId != null ? !updateId.equals(that.updateId) : that.updateId != null) return false;

        return true;
    }

   
    public int hashCode() {
        int result = gghstyId;
        result = 31 * result + giId;
        result = 31 * result + prevId;
        result = 31 * result + (type != null ? type.hashCode() : 0);
        result = 31 * result + (startDate != null ? startDate.hashCode() : 0);
        result = 31 * result + (endDate != null ? endDate.hashCode() : 0);
        result = 31 * result + (lastUpdate != null ? lastUpdate.hashCode() : 0);
        result = 31 * result + (updateId != null ? updateId.hashCode() : 0);
        return result;
    }
 
    public GeoInfoEntity getGeoInfoEntity() {
        return geoInfoEntity;
    }

    public void setGeoInfoEntity(GeoInfoEntity geoInfoEntity) {
        this.geoInfoEntity = geoInfoEntity;
    }
}
